//
//  DHScenarioModel.m
//  Dresshere
//
//  Created by ZhangPeng on 2017/12/26.
//  Copyright © 2017年 张朋. All rights reserved.
//

#import "DHScenarioModel.h"

@implementation DHScenarioModel

@end

@implementation DHScenarioListModel

+ (NSDictionary *)modelContainerPropertyGenericClass{
    return @{@"scenes":[DHScenarioModel class]};
}

- (NSMutableArray *)scenarioTitleArr{
    if (!_scenarioTitleArr) {
        _scenarioTitleArr = [NSMutableArray array];
    }
    return _scenarioTitleArr;
}

- (void)updateScenarioTitleArr{
    if (self.scenes) {
        [self.scenarioTitleArr removeAllObjects];
        [self.scenes enumerateObjectsUsingBlock:^(DHScenarioModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
            [self.scenarioTitleArr addObject:obj.title];
        }];
    }
}

@end
